<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>注册 - 锐聘网</title>
<link href="css/base.css" type="text/css" rel="stylesheet" />
<link href="css/register.css" type="text/css" rel="stylesheet" />
<meta content="大学生求职,大学生就业,大学生招聘,IT人才,IT人才招聘,大学生名企招聘,,大学生找工作,IT名企招聘，IT行业招聘，IT企业快速入职" name="keywords">
<meta content="锐聘专注于为企业提供高效的人力资源解决方案，同时面向IT类技术人才推出快速一站式免费就业服务。秉承QST青软实训人才服务理念，为数千家企业量身定做个性化、全程化的人才培养体系，同时帮助中高级人才铺设成功之路，为人才和企业架设起沟通之桥。" name="description">
<script type="text/javascript">
	function changcode(){
		var img = document.getElementById("img");
		img.src = "code.do?"+new Date().getTime();
	}
	
	function vaildate(){
		var email = document.getElementById("eamil");
		var password = document.getElementById("password");
		var textch = document.getElementById("textch");
		var yes = document.getElementById("yes");
		
		var regex=/^[a-zA-Z0-9-]+@[a-zA-Z0-9-]+(.(com|cn|org|edu|hk))$/;
		var regexpwd=/^[a-zA-Z0-9_-]{6,16}$/;
		
 		if(email.value==""){
			alert("邮箱为空");
			email.focus();
			return false;		
		}else if(!regex.test(email.value)){
			alert("邮箱格式不正确！");
			email.focus();
			return false;		
		}
		
		if(password.value==""){
			alert("密码为空！");
			password.focus();
			return false;
		}else if(!regexpwd.test(password.value)){
			alert("密码格式不对,必须在6-16位,并且只能包含数字、字母");
			password.focus();
			return false;
		} 
		
		if(!yes.checked){
			alert("必须同意本站服务条款！");
			yes.focus();
			return false;
		}
		
	}
	
</script>

</head>

<body>
<jsp:include page="top.jsp"></jsp:include>
<div class="content">
  <div class="page_name">注册</div>
  <div class="login_content">
    <form action="register.do" method="post" name="form1" onsubmit="return vaildate();">
    	<div class="login_l">
	      <div class="span1">
	        <label class="tn-form-label">邮箱：</label>
	        <input  class="tn-textbox" type="text" name="eamil" id="eamil">
	      </div>
	      <div class="span1">
	        <label class="tn-form-label">密码：</label>
	        <input class="tn-textbox"  type="password" name="password" id="password">
	      </div>
	      <div class="span1">
	        <label class="tn-form-label">验证码：</label>
	        <input class="tn-textbox-long"  type="text" name="textch" id="textch">
	        <span> <img src="code.do" title="点击换一换" onclick="changcode();" id="img"> <a href="javascript:;" onclick="changcode();">看不清？</a> </span> </div>
	      <div class="tn-form-row-button">
	        <div class="span1">
	          <input name="" type="submit" class="tn-button-text" value="立即注册">
	          <p class="it-register-text">
	            <input  name="yes" id="yes" class="tn-checkbox" value="true" checked="checked" type="checkbox">
	            <label > 同意本站服务条款</label>
	            <a href="javascript:;">查看</a> </p>
	        </div>
	      </div>
	      <div class="clear"></div>
	    </div>
    </form>
    <div class="register_r">
      <p align="center"> <b>还没有帐号？</b><a  href="register.html">10秒钟快速注册</a></p>
    
      <div><img src="images/reg_pic.jpg"></div>
    
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<jsp:include page="foot.jsp"></jsp:include>
</body>
</html>

